<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="BasicView,org.papervision3d.view.BasicView,cameraAsCamera3D,cameraAsDebugCamera3D" name="keywords">
<title>org.papervision3d.view.BasicView</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'BasicView - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Papervision3D 2.1 日本語 リファレンスガイド</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?org/papervision3d/view/BasicView.html&amp;org/papervision3d/view/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;BasicView</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class BasicView"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.papervision3d.view</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class BasicView</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">BasicView <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> org.papervision3d.view.AbstractView</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Implements</td><td>org.papervision3d.core.view.IView</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Subclasses</td><td><a href="../core/effects/view/ReflectionView.html">ReflectionView</a></td>
</tr>
</table>
<p></p>
  <span lang="ja">
  BasicView は、Papervision3D のプロジェクトを簡単にセットアップすることができるクラスです。
  シーン、カメラ、レンダラー、ビューポートのシンプルなテンプレートを提供しています。
  BasicView は Sprite のサブクラスであり、どんな DisplayObject にも加える事ができます。
  </span>
  <span lang="en">
  BasicView provides a simple template for quickly setting up
  basic Papervision3D projects by creating a viewport, scene,
  camera, and renderer for you. Because BasicView is a subclass of
  Sprite, it can be added to any DisplayObject.
  </span>
  
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#cameraAsCamera3D">cameraAsCamera3D</a> : <a href="../cameras/Camera3D.html">Camera3D</a>
<div class="summaryTableDescription">[read-only]
         <span lang="ja">camera インスタンスを Camera3D 型として取得します。</span>
   <span lang="en">Exposes the camera as a <code>Camera3D</code></span>
         </div>
</td><td class="summaryTableOwnerCol">BasicView</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#cameraAsDebugCamera3D">cameraAsDebugCamera3D</a> : <a href="../cameras/DebugCamera3D.html">DebugCamera3D</a>
<div class="summaryTableDescription">[read-only]
         <span lang="ja">camera インスタンスを DebugCamera3D 型として取得します。</span>
   <span lang="en">Exposes the camera as a <code>DebugCamera3D</code></span>
         </div>
</td><td class="summaryTableOwnerCol">BasicView</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#BasicView()">BasicView</a>(viewportWidth:Number = 640, viewportHeight:Number = 480, scaleToStage:Boolean = true, interactive:Boolean = false, cameraType:String = "Target")</div>
<div class="summaryTableDescription">
  <span lang="ja">新しい BasicView インスタンスを作成します。</span>
  </div>
</td><td class="summaryTableOwnerCol">BasicView</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="cameraAsCamera3D"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">cameraAsCamera3D</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>cameraAsCamera3D:<a href="../cameras/Camera3D.html">Camera3D</a></code>&nbsp;&nbsp;[read-only]<p>
         <span lang="ja">camera インスタンスを Camera3D 型として取得します。</span>
   <span lang="en">Exposes the camera as a <code>Camera3D</code></span>
         </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get cameraAsCamera3D():<a href="../cameras/Camera3D.html">Camera3D</a></code>
<br>
</div>
<a name="cameraAsDebugCamera3D"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">cameraAsDebugCamera3D</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>cameraAsDebugCamera3D:<a href="../cameras/DebugCamera3D.html">DebugCamera3D</a></code>&nbsp;&nbsp;[read-only]<p>
         <span lang="ja">camera インスタンスを DebugCamera3D 型として取得します。</span>
   <span lang="en">Exposes the camera as a <code>DebugCamera3D</code></span>
         </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get cameraAsDebugCamera3D():<a href="../cameras/DebugCamera3D.html">DebugCamera3D</a></code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="BasicView()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">BasicView</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function BasicView(viewportWidth:Number = 640, viewportHeight:Number = 480, scaleToStage:Boolean = true, interactive:Boolean = false, cameraType:String = "Target")</code><p>
  <span lang="ja">新しい BasicView インスタンスを作成します。</span>
  </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">viewportWidth</span>:Number</code> (default = <code>640</code>)<code></code> &mdash;  ビューポートの幅です。
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">viewportHeight</span>:Number</code> (default = <code>480</code>)<code></code> &mdash; ビューポートの高さです。
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">scaleToStage</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash;  ビューポートをステージに合わせるかどうかのフラグです。
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">interactive</span>:Boolean</code> (default = <code>false</code>)<code></code> &mdash;  シーンがインタラクティブかどうかの設定です。3Dオブジェクトにマウスイベントを登録する場合は、trueを設定します。
  </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">cameraType</span>:String</code> (default = "<code>Target</code>")<code></code> &mdash;  カメラのタイプを指定します。
  
  </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../cameras/CameraType.html" target="">org.papervision3d.cameras.CameraType</a>
</div>
<br>
<span class="label">Example</span>
<br>
  
  次の例は、BasicView　クラスを継承したサブクラスを生成する場合のコードです。
  <div class="listing">
  <pre>
  package {
   import org.papervision3d.view.BasicView;
   import org.papervision3d.objects.primitives.Sphere;
   public class Main extends BasicView {
    public function Main() {
     super( 0, 0, true, true, CameraType.TARGET );
     
     var obj:Sphere = new Sphere();
     scene.addChild(obj);
  
     startRendering();
    }
   }
  }
  </pre>
  </div>
  
  次の例は、BasicView　クラスをインスタンスとして利用する場合のコードです。
  <div class="listing">
  <pre>
  var width:Number = 640;
  var heigth:Number = 480;
  var scaleToStage:Boolean = true;
  var interactive:Boolean = true;
  var cameraType:String = Camera3D.TYPE;
  
  var myBasicView:BasicView = new BasicView(width, height, scaleToStage, interactive, cameraType);
  myDisplayObject.addChild(myBasicView);
  </pre>
  </div>
  <p></p>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
